package com.example.spgl.service;

import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

public interface FileService {
    /*
     * 上传图片 返回url，供前端使用
     * */
    String uploadFile(MultipartFile file,String fileName) throws IOException;

    /*
     * 下载图片
     * */
    void downloadFile(String fileName, HttpServletRequest request, HttpServletResponse response) throws IOException;

    /*
     * 删除图片
     * */
    boolean deleteFile(String FileName);
}
